/* 基础样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: #222;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004499;
}

button {
    cursor: pointer;
    transition: all 0.3s;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.logo i {
    margin-right: 10px;
    color: #0066cc;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #555;
    font-weight: 500;
}

nav ul li a:hover {
    color: #0066cc;
}

.menu-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
}

/* 文章容器样式 */
.article-container {
    display: flex;
    margin-top: 40px;
    gap: 40px;

}

.article-content {
    flex: 2;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.1);
}

.article-cover {
    position: relative;
    height: 320px;
    overflow: hidden;
    width: 98%;
    left: 1%;
    top: 10px;
    border-radius: 10px;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-cover img:hover {
    transform: scale(1.03);
}

.article-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #0066cc;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.article-body {
    padding: 40px;
    padding-top: 20px;
}

#article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #222;
    cursor: text;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: #777;
    font-size: 14px;
}

.author-info {
    display: flex;
    gap: 20px;
}

.author-info span {
    display: flex;
    align-items: center;
}

.author-info i {
    margin-right: 5px;
}

.share-actions {
    display: flex;
    gap: 15px;
}

.share-btn, .bookmark-btn {
    background: none;
    border: none;
    color: #777;
    font-size: 16px;
}

.share-btn:hover, .bookmark-btn:hover {
    color: #0066cc;
}

#article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

#article-content p {
    margin-bottom: 25px;
}

#article-content h3 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 15px;
}

#article-content ul {
    margin-bottom: 25px;
    padding-left: 25px;
}

#article-content li {
    margin-bottom: 10px;
}

.article-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: #e0e0e0;
}

.author-profile {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.author-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    margin: 0;
    font-size: 18px;
}

.author-details p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

/* 操作按钮区域样式 */
.article-actions {
    flex: 1;
    max-width: 200px;
}

.action-buttons {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#btn-limit {
    background-color: #ffc107;
}

#btn-limit:hover {
    background-color: #e0a800;
}

#btn-block {
    background-color: #dc3545;
}

#btn-block:hover {
    background-color: #c82333;
}

#btn-back {
    background-color: #6c757d;
}

#btn-back:hover {
    background-color: #5a6268;
}

/* 页脚样式 */
footer {
    background-color: #222;
    color: #888;
    margin-top: 80px;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #fff;
}

.footer-logo i {
    margin-right: 10px;
    color: #0066cc;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.footer-links ul li a {
    color: #888;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #333;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.social-icon:hover {
    background-color: #0066cc;
    color: #fff;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-container {
        flex-direction: column;
    }

    .article-actions {
        max-width: 100%;
        margin-top: 30px;
    }

    .action-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
    }

    .action-buttons button {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .article-cover {
        height: 300px;
    }

    .article-body {
        padding: 30px 20px;
    }

    #article-title {
        font-size: 26px;
    }

    #article-content {
        font-size: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 15px;
    }
}
a{
    text-decoration: none;
    color: black;
}
#article-cover-none{
    font-size: 150px;
    position: absolute;
    top: 20px;
    left: 370px;
    display: none;
}
#article-cover-none::after {
    content:"暂无封面";
    position: absolute;
    top:190px;
    right: 60px;
    display: inherit;
    font-size: 20px;
}
#btn-save{
    background-color: rgb(56, 179, 148);
    transition: 0.5s;
}
#btn-save:hover {
    background-color: rgb(51, 166, 137);
}
/*confirm封装*/
#confirm-container{
    width: 450px;
    height: 215px;
    position:fixed;
    top: calc((100% - 215px) / 2);
    left: calc((100% - 450px) / 2);
    z-index: 10086;
    border-radius: 15px;
    background-color: white;
    display: none;
    transform: scale(0);
    transition:  0.3s;
}
#confirm-title-container{
    width: 100%;
    height: 60px;
    border-bottom: 1.5px solid rgba(74,131,244,0.5);
}
#confirm-title-container2{
    margin:0px 24px;
    position: relative;
    top: 16px;
}
#wenhao{
    font-size: 15px ;
    color: rgb( 74,131,244);
}
#confirm-title{
    margin-left: 15px;
    font-size: 1.125rem;
    font-weight: 600;
}
#confirm-content-container{
    width: 100%;
    height: 88px;
    color: rgb(75 85 99);
}
#confirm-content-container2{
    margin:0px 24px;
    position: relative;
    top: 20px;
}
#confirm-button-container{
    position:relative;
    left: 200px;
    top: 10px;
}
.confirm-btn{
    transition: 0.5s;
    outline: none;
    border: none;
    background-color:transparent;
    color: white;
}
.confirm-btn:hover{
    transition: 0.5s;
    scale: 1.1;
}
#confirm-button{
    padding: 7px 15px;
    border-radius:5px;
    margin-right: 10px;
    color: white;
    background-color: rgb(  66,141,238);
}
#confirm-button:hover{
    background-color: rgb(56, 134, 237);
}
#confirm-button:active{
    background-color: rgb(29, 121, 241);
}
#cancel-button{
    padding: 7px 15px;
    border-radius:5px;
    margin-left: 20px;
    color: white;
    background-color: rgb(230, 84,103);
}
#cancel-button:hover{
    background-color: rgb(229, 70, 90);
}
#cancel-button:active{
    background-color: rgb(166, 40, 41);
}
#confirmShowmodal{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 10085;
    background-color: rgba(0,0,0,0.2);
}
/*alert封装*/
.alert{
    display: none;
    width: 230px;
    height: 70px;
    color: red;
    text-align: center;
    position: absolute;
    border-radius: 6px;
    top: 10%;
    left: 50%;
    background-color: white;
    opacity: 1.5;
    line-height: 70px;
    box-shadow: 0 0 9px 1px #E5E0E0;
    transform: translate(-50%);
    font-size: 17px;
    z-index: 10087;
}